package lyq.spec.edu.week12_home02;

import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.util.Log;
import android.widget.TextView;

public class ActivityObtained extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_obtained);

        TextView tv = (TextView)findViewById(R.id.obtained_text); //second_layout中的TextView的id;
        Intent intent = getIntent();
        //获取数据
        String Text = intent.getStringExtra("WeChat_Text");
        //设置数据
        tv.setText(Text);
    }
}
